<?php
    if ($detail_text->num_rows() > 0) {
        $pw = $detail_text->row();
    } 
?>

<div id="wrapper-content">
    <div id="form_profile" align="center" style="text-align: left">
        <div align="center" id="titre_viewactu">INFORMATION TEXT</div>
        <?php echo form_open_multipart(site_url('text/edit_text') . '/'.$pw->id_text.'/'.  $pw->id.'/'.$para); ?>
        <table align="center" id="form_profile" cellpadding="10px" cellspacing="0">
            <tr>
                <td>Paragraph:</td>
                <td style="font-weight: bold"><?php echo $para; ?></td>
            </tr>
            <tr>
                <td>Page Title:</td>
                <td style="font-weight: bold"><?php echo $pw->page_title; ?></td>
            </tr>
            <tr>
                <td>Description:</td>
                <td colspan="2">
                    <?php
                        $data = array('name' => 'description',
                        'id' => 'description',
                        'width' => '590',
                        'height' => '250',
                        'value' => $pw->para_text,
                        'type' =>'text'
                        );
                        echo form_fckeditor($data);
                    ?>
                </td>
            </tr>
            <tr>
                <td></td>
                <td colspan="2"><?php echo form_error('description'); ?></td>
            </tr>
            <tr>
                <td><input type="submit" name="submit" value="Update"/></td>
            </tr>
        </table>
    </div>
    <?php echo form_close() ?>

</div>


